import { post,get } from '../../utils/request'

//获取居民列表
export const userinfoList = (params:any) => { 
    return get('/userinfo/list', params)
}

//删除居民

export const deluserinfo = (id:number) => { 
    return get('userinfo/delete',{id:id})
}
//批量删除居民
export const delalluserinfo = (ids:number[]) => { 
    return post('userinfo/deleteall',{ids})
}

//添加
export const adduserinfo = (data:object) => { 
    return post('userinfo/add',data)
}
//获取类型
export const userinfotypelist = () => { 
    return get('userinfotype/list',)
}
//审核
export const updatestateuserinfo = (ids:number[]) => { 
    return get('userinfo/updatestate',{ids})
}